#include <iostream>
#include <QtGui>

#include "WindConsoleGraph.h"
#include "QtGraphics.h"
#include "QtSceneGraphics.h"
#include "QtThreadGraphics.h"

#include "TableModel.h"
#include "GameWidget.h"
#include "Field.h"

using std::cout;
using std::cin;
using std::endl;

int main( int argc, char **argv )
{
    QApplication app( argc, argv );
    QtThreadGraphics a;

    GameWidget* widget = a.getWidget();
    widget->activateWindow();
    Field f( &a, DEFAULT );
    app.setActiveWindow( widget );

    widget->setField( &f );

    //f.saveInFile( "save.txt", "saveConfig.txt" );
    //f.clear();
    //f.loadFromFile( "save.txt", "saveConfig.txt" );
    cout << endl << "Hello World!" << endl;
    app.exec();
    return 0;
}
